package com.jeesite.modules.commands.service;

import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.commands.entity.Commands;
import com.jeesite.modules.commands.dao.CommandsDao;

/**
 * 指令表，记录指令Service
 * @author LaVenderGong
 * @version 2025-08-20
 */
@Service
public class CommandsService extends CrudService<CommandsDao, Commands> {

	/**
	 * 获取单条数据
	 * @param commands
	 * @return
	 */
	@Override
	public Commands get(Commands commands) {
		return super.get(commands);
	}

	/**
	 * 查询分页数据
	 * @param commands 查询条件
	 * @param commands page 分页对象
	 * @return
	 */
	@Override
	public Page<Commands> findPage(Commands commands) {
		return super.findPage(commands);
	}

	/**
	 * 查询列表数据
	 * @param commands
	 * @return
	 */
	@Override
	public List<Commands> findList(Commands commands) {
		return super.findList(commands);
	}




	/**
	 * 保存数据（插入或更新）
	 * @param commands
	 */
	@Override
	@Transactional
	public void save(Commands commands) {
		super.save(commands);
	}

	/**
	 * 更新状态
	 * @param commands
	 */
	@Override
	@Transactional
	public void updateStatus(Commands commands) {
		super.updateStatus(commands);
	}

	/**
	 * 删除数据
	 * @param commands
	 */
	@Override
	@Transactional
	public void delete(Commands commands) {
		super.delete(commands);
	}

}
